import {createStore,combineReducers,applyMiddleware} from "redux"
import thunk from "redux-thunk"
import {composeWithDevTools} from "@redux-devtools/extension"
import register from "./modules/register"
import login from "./modules/Login"
import Home from "./modules/Home"
import Cate from "./modules/Cate"
import Shop from "./modules/Shop"
import Detail from "./modules/Detail"
import Coupon from "./modules/Coupon"

const reducer = combineReducers({
    register,
    login,
    Home,
    Cate,
    Shop,
    Detail,
    Coupon
})

const store =createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))

export default store